package org.advanced.annotation;

import java.lang.annotation.*;

/**
 * @author John.zhang
 * @version Id: Annotation, v 1.0 2020/12/7 9:41 ZhiYong Exp $
 * RetentionPolicy.SOURCE 只有当前代码阶段
 * RetentionPolicy.CLASS 字节码阶段
 * RetentionPolicy.RUNTIME 运行阶段JVM层面
 * Inherited注解是否可以被子类继承
 */

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Inherited
public @interface Annotation {

    String name() default "";

    int[] age() default {0, 1};

    AnnotationA value();

}
